#pragma once

#include "iostream"
#include "vector"
#include "algorithm"

using namespace std;
/*HJJ QQ479287006
 *
 * */

void  choosesort(vector<int> nums)
{
    for (int i = 0; i <nums.size() ; ++i) {

        for (int j =i+1 ; j <nums.size() ; ++j) {

            if (nums[j]<nums[i])
                swap(nums[j],nums[i]);

        }

    }


    for (const auto &item : nums)
        cout<<item<<" ";
}